oxenstored: support commit history tracking
authorJonathan Davies <jonathan.davies@citrix.com>
Tue, 14 Mar 2017 13:20:07 +0000 (13:20 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 28 Mar 2017 12:07:04 +0000 (13:07 +0100)
commit83ee94f39cf51bb9bcf1affabfbee8257c559655
tree44ce6f61e2b90cd10dd9681ff547c1a4b244e85c
parent85b1b18582011f3b80e78aa4c2439e2de5cd9419
oxenstored: support commit history tracking

Add ability to track xenstore tree operations -- either non-transactional
operations or committed transactions.

For now, the call to actually retain commits is commented out because history
can grow without bound.

For now, we call record_commit for all non-transactional operations. A
subsequent patch will make it retain only the ones with side-effects.

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Reviewed-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/xenstored/Makefile
tools/ocaml/xenstored/history.ml [new file with mode: 0644]
tools/ocaml/xenstored/process.ml
tools/ocaml/xenstored/xenstored.ml